package com.jiangjupeng46.pojo;

import java.io.Serializable;
import java.util.Date;

public class Checkin implements Serializable {
    private Integer id;
    private Integer memberId;
    private Date checkinDate;
    
    // 关联对象
    private Member member;

    // 无参构造函数
    public Checkin() {
    }

    // 有参构造函数
    public Checkin(Integer id, Integer memberId, Date checkinDate) {
        this.id = id;
        this.memberId = memberId;
        this.checkinDate = checkinDate;
    }

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Date getCheckinDate() {
        return checkinDate;
    }

    public void setCheckinDate(Date checkinDate) {
        this.checkinDate = checkinDate;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    @Override
    public String toString() {
        return "Checkin{" +
                "id=" + id +
                ", memberId=" + memberId +
                ", checkinDate=" + checkinDate +
                ", member=" + member +
                '}';
    }
}